package liuwanghui.dto.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class StockUpdateDTO {
    @NotNull(message = "库存ID不能为空")
    private Long id;
    @NotNull(message = "更新数量不能为空")
    private Integer quantity;
    @NotBlank(message = "操作人不能为空")
    private String operator;
    private String remark;
    private Integer stock;
    @NotNull(message = "操作类型不能为空")
    private Integer type;
}